package sample.components
{
	import sample.viewassets.ADropdownItem;

	internal class DropdownItem extends ADropdownItem
	{
		private var value:*;
		
		public function DropdownItem( label:String, p_value:* )
		{
			super( );
			
			setValue( p_value );
			setLabel( label );
			
			this.mouseChildren = false;
			this.buttonMode = true;
		}
		
		public function getLabel( ):String
		{
			return this.$label.text;
		}
		
		public function setLabel( value:String ):void
		{
			this.$label.text = value;
		}
		
		public function setValue( p_value:* ):void
		{
			value = p_value;
		}
		
		public function getValue( ):*
		{
			return String( value );
		}
	}
}